<template>
	<view class="whole">
		<view class="password_top">
			<view class="password">
				<input type="text" placeholder="输入交易密码" v-model="newpassword">
			</view>
			<view style="height: 2rpx;background-color: #262934;margin: 0  30rpx;"></view>
			<view class="password">
				<input type="text" placeholder="确认交易密码" v-model="newpasswords">
			</view>
			<view style="height: 2rpx;background-color: #262934;margin: 0  30rpx;"></view>
		</view>
		<view class="password_center">
			<text>密码必须是8-16位英文字母、数字、字符组合（不能是纯数字）</text>
			<text style="color:#F78623;margin-top: 20rpx;" @click="toForgetTrading">忘记交易密码？</text>
		</view>
		<view class="button" @click="Submit">
			确定
		</view>
	</view>
</template>

<script>
	import api from '../../api/api'
	export default {
		data() {
			return {
				newpassword:'',
				newpasswords:'',
			}
		},
		methods: {
			Submit(){
				let res = api.changeOperationPassword({
					query:{
						account:'',
					},
					method:'post'
				})
				
			},
			toForgetTrading(){
				uni.navigateTo({
					url:'../forget_trading/forget_trading'
				})
			}
		}
	}
</script>

<style>
	.whole{
		background-color: #111218;
		min-height: 100vh;
	}
	.password_top{
		border: 2rpx solid #262934;
		margin: 0 30rpx;
		background-color: #1C1E27 ;
		border-radius: 25rpx;
		position: relative;
		top: 50rpx;
		font-size: 28rpx;
	}
	.password{
		display: flex;
		justify-content: space-between;
		align-items: center;
		color: #FFFFFF;
		margin: 20rpx 30rpx;
		min-height: 50rpx;
	}
	.password_center{
		position: relative;
		top: 50rpx;
		color: #999999;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: space-between;
		margin: 30rpx;
		font-size: 28rpx;
	}
	.button{
		position: relative;
		top: 100rpx;
		color: #FFFFFF;
		margin:30rpx;
		height: 90rpx;
		background-color: #F78623 ;
		background-image: linear-gradient(to right, #F78623 , #D5280A );
		text-align: center;
		line-height: 90rpx;
		font-size: 32rpx;
		border-radius: 16rpx;
	}

</style>
